﻿namespace NewRetail.Application.Components.WechatOrAlipayPayment
{
    /// <summary>
    /// 调用阿里支付接口参数设置(弃用)
    /// </summary>
    public class AlipayConfigs
    {
        /// <summary>
        /// 发起请求的应用ID。沙箱与线上不同，请更换代码中配置;
        /// </summary>
        public string AppId { get; set; }

        /// <summary>
        /// 用于支付宝账户登录授权业务的入参 pid
        /// </summary>
        public string PId { get; set; }

        /// <summary>
        /// 支付宝私匙
        /// </summary>
        public string AlipayPrivateKey { get; set; }

        /// <summary>
        /// 应用公钥
        /// </summary>
        public string AppPublickey { get; set; }

        /// <summary>
        /// 支付宝公匙
        /// </summary>
        public string AlipayPublicKey { get; set; }

        /// <summary>
        ///  服务器异步通知路径
        /// </summary>
        public string notify_url { get; set; }

        /// <summary>
        ///  公匙类型/签名类型
        /// </summary>
        public string SignType { get; set; }

        /// <summary>
        ///  编码格式
        /// </summary>
        public string CharSet { get; set; }

        /// <summary>
        /// 向支付宝发起请求的网关。沙箱与线上不同，请更换代码中配置;沙箱:https://openapi.alipaydev.com/gateway.do上线https://openapi.alipay.com/gateway.do
        /// </summary>
        public string GatewayUrl { get; set; }
        /// <summary>
        /// 服务url
        /// </summary>
        public string ServerUrl { get; set; }
        /// <summary>
        /// 调用的接口版本
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 仅支持JSON
        /// </summary>
        public string Format { get; set; }

        public bool KeyFromFile { get; set; }
    }
}
